<?php
	//set session save path
	session_save_path("../../../../private/sessions");
	// Initialize a session. 
	session_start();
	session_destroy();
  	//Let user know if the session timed out     
	if($timeout)
	{
		echo "<h1>Your current current session has expired.<br />Please log back in to use site.</H1>";
		echo "<h3><a href=\"http://hockey.joshhughes.com/$League\" target=\"_self\">Login</a></h3>";
	}
	//or the user logged off, go back to home.
	else
	{
	?>
		<SCRIPT language="JavaScript">
		<!--
		parent.location="http://hockey.joshhughes.com/<?= $League ?>";
		//-->
		</SCRIPT>
	<?
	}
?>